package com.slg.service;

import com.slg.entity.dto.EmployeeDto;
import com.slg.entity.dto.SalaryDto;
import com.slg.entity.pojo.Employee;
import com.slg.entity.pojo.Page;
import com.slg.entity.pojo.Salary;
import com.slg.entity.pojo.Shenqing;

import java.util.List;

public interface AdminiService {


    Page<Employee> queryEmployee(Integer pageNum, Integer pageSize, Employee employee);

    Page<Salary> querySalary(Integer pageNum, Integer pageSize, Salary salary);

    Employee login(Employee employee);



    Page<SalaryDto> querySalaryDto(Integer pageNum, Integer pageSize, Salary salary);

    int setBaoXiao(Integer baoxiao,Integer id);

    Salary querySalaryByOne(Integer id);

    List<Salary> queryDatabase();

//    int updateException(String username,String position, Integer basicsalary, Integer jiangjin, Integer baoxiao, Integer id);

    int updateException( Shenqing salaryDto);
     int updateEmployee(Employee employee) ;

    int updateSalary1(SalaryDto salaryDto);

    int deleteEmployee(int id);

    int deleteEmployee1(int id);

    int jujube(int id);

    int add(Employee employee);

    int add1(SalaryDto salaryDto);

   // List<Shenqing> queryDatabase1();
    Page<Shenqing> queryDatabase1(Integer pageNum, Integer pageSize);

    int updateSalary3(int  id);

//    int register(User user) ;

    Employee getUserByUserName(String userName);
}
